import Vue from 'vue'
import App from './App.vue'
import axios from 'axios'
import ElementUI from "element-ui"
import VueRouter from "vue-router"
import VueLuckyCanvas from '@lucky-canvas/vue';


import 'element-ui/lib/theme-chalk/index.css'

import Vant from 'vant';
import { Step, Steps } from 'vant';

Vue.use(Step);
Vue.use(Steps);
Vue.use(VueLuckyCanvas);
import 'vant/lib/index.css';

import HomePage from "./components/page/HomePage"
import Detail from "./components/page/Detail"
import Category from "./components/type/Category"
import ShoppingCart from "./components/cart/ShoppingCart"
import Mine from "./components/user/Mine"
import Login from "./components/login/Login"
import Forget from "./components/login/Forget"
import Fu from "./components/type/Fu.vue"
import yuyue from "./components/type/yuyue.vue"
import Ding from "./components/type/Ding.vue"
import Map from "./components/type/Map.vue"
import selectTime from "./components/type/selectTime.vue"
import SelectPrice from "./components/type/SelectPrice.vue"
import SelectServiceType from "./components/type/selectServiceType.vue"
import Register from "./components/login/Register"
import Geren from "./components/user/path/geren.vue"
import saveAddress from "./components/user/path/saveAddress.vue"
import Money from "./components/user/path/money.vue"
import address from "./components/user/path/address.vue"

import Mingxi from "./components/user/path/monyeMingxi.vue"
import address from "./components/user/path/address.vue"
import jishi from "./components/user/path/jishi.vue"
import youhuijuan from "./components/user/path/youhuijuan.vue"
import OrderItem from "@/components/cart/OrderItem.vue";
import PaymentInfo from "@/components/cart/PaymentInfo.vue";
import selectServiceType from "@/components/type/selectServiceType.vue";
import Rant from "@/components/cart/Rant.vue";
import Around from "@/components/cart/Around.vue";
import Await from "@/components/cart/Await.vue";
import Submit from "@/components/cart/Submit.vue";
import Address from "@/components/cart/Address.vue";
import BookingDate from "@/components/cart/BookingDate.vue";





// import { createApp } from 'vue';
import { AddressEdit } from 'vant';
// const app = createApp();
Vue.use(AddressEdit);
axios.defaults.baseURL = '/proxy_url';
Vue.config.productionTip = false
Vue.use(ElementUI)
Vue.use(VueRouter)
Vue.use(Vant)


var router = new VueRouter({
	routes:[
		{path:'/',redirect:'/login'},
		{path:'/login',component:Login},
		{path:'/register',component:Register},
		{path:'/forget',component:Forget},
		{path:'/homepage',component:HomePage},
		{path:'/detail',component:Detail},
		{path:'/orderitem',component:OrderItem},
		{path:'/address',component:Address},
		{path:'/bookingdate',component:BookingDate},
		{path:'/around/:orderId',component:Around},
		{path:'/rant/:orderId',component:Rant},
		{path:'/await/:orderId',component:Await},
		{path:'/paymentinfo/:orderId',component:PaymentInfo},
		{path:'/rant',component:Rant},
		{path:'/submit',component:Submit},
		{path:'/category',component:Category},
		{path:'/shoppingcart',component:ShoppingCart},
		{path:'/mine',component:Mine},
		{path:'/geren',component:Geren},
		{path:'/money',component:Money},
		{path:'/Fu',component:Fu},
		{path:'/selectTime',component:selectTime},
		{path:'/selectServiceType',component:selectServiceType},
		{path:'/yuyue',component:yuyue},
		{path:'/Ding',component:Ding},
		{path:'/address',component:address},
		{path:'/Map',component:Map},
		{path:'/SelectPrice',component:SelectPrice},
		{path:'/Mingxi',component:Mingxi},
		{path:'/youhuijuan',component:youhuijuan},
		{path:'/address',component:address},
		{path:'/jishi',component:jishi},
		{path:'/saveAddress',component:saveAddress},
		]
})


new Vue({
  render: h => h(App),
  router
}).$mount('#app')
